﻿using AnesSystem.Models.Model;
using MongoDB.Bson;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AnesSystem.Models
{
    public class LaborTemplateModel:BaseModel<LaborTemplateModel>
    {
        private ObjectId _id;
        private DateTime createTime;
        private string userId;
        private string name;
        private List<PatientLaborEventModel> templateList;

        public DateTime CreateTime
        {
            get
            {
                return createTime;
            }

            set
            {
                createTime = value;
            }
        }

        public string UserId
        {
            get
            {
                return userId;
            }

            set
            {
                userId = value;
            }
        }

        public List<PatientLaborEventModel> TemplateList
        {
            get
            {
                if (templateList==null)
                {
                    templateList = new List<PatientLaborEventModel>();
                }
                return templateList;
            }

            set
            {
                templateList = value;
            }
        }

        public string Name
        {
            get
            {
                return name;
            }

            set
            {
                name = value;
            }
        }

        public ObjectId Id
        {
            get
            {
                return _id;
            }

            set
            {
                _id = value;
            }
        }
    }
}
